/*
 * @Author: AskMeWhy
 * @Date: 2020-12-27 11:58:47
 * @Last Modified by: AskMeWhy
 * @Last Modified time: 2020-12-27 17:25:46
 */
const app = getApp();
const { AskComponent } = app._require("common/index");
AskComponent({
    properties: {
        list: {
            type: Array,
            value: [],
        },
        value: {
            type: String,
            optionalTypes: [Number],
            value: "",
        },
    },
    data: {},
    methods: {
        handleClick(e){
            let { item } = e.currentTarget.dataset;
            this.$emit("click", { value: item });
        }
    },
});
